package com.zzq.pojo.dto;


import jakarta.validation.constraints.*;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Builder
@Data
public class TenderInfoDTO {

    @Pattern(regexp = "\\d+", message = "项目编号格式错误")
    @NotBlank(message = "项目编号不能为空")
    private String tenderProjectNo;

    @NotBlank(message = "药品名称不能为空")
    private String drugName;

    private String manufacturer;
    private String packagingReq;

    @NotNull(message = "数量不能为空")
    @Min(value = 1, message = "数量不能小于1")
    private Integer totalNumber;

    @NotNull(message = "截止日期不能为空")
    private Date tenderDeadline;
    private Double bidDeposit;
    private String state;

    private  String fileId;
    private String fileName;
    private  Long fileSize;

}
